<template>
	<view>
		<!-- 公告 -->
		<view class="modelBox" v-for="(item,i) in noticeList" :key="i" @click="$util.redirectTo('/otherpages/noticeDetali/noticeDetali',{id:item.id})">
			<view class="flex_b">
				
			<view class="">
				<view class="">{{item.name}}</view>
				<view class="">{{$util.timeStampTurnTime(item.updatetime)}}</view>
			</view>
			
			<view class="iconfont icon-xiangyoujiantou"></view>
			</view>
			
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				noticeList:[]
			};
		},
		onLoad() {
			this.notice()
		},
		methods:{
			notice() {
				this.$api.sendRequest({
					url:'/api/index/notice',
					success:res=>{
						this.noticeList = res.data
					}
				})
			}
		}
	}
</script>

<style lang="scss">
page {
	background-color: #eeeeee;
}
</style>
